@config.main("Help") {
    <link rel="stylesheet" media="screen" href="@routes.Assets.versioned("config/doc.css")">

    <style>

            .text-p {
                text-align: justify;
                text-indent: 2em;
            }

            .bs-docs-sidebar.affix {
                position: fixed;
                top: 50px;
            }

            .affix {
                top: 50px;
            }

            h3 {
                margin-top: 10px;
            }



            .my-sortable{
                justify-content: center;
            }

            .bootstrap-table .fixed-table-container .table thead th .th-inner{
                padding: 0.5rem 0.3rem;
            }

    </style>

    <div class="body-box">
        <div class="page-box">

            @config.subTitle("Statistics")

            <div class="main-body">

                <div class="row">

                    <div class="col-md-12" style="padding-top: 30px;
                        display: flex">
                        <div class="col-md-3" id="myScrollspy">
                            <div class="bs-docs-sidebar affix" id="myNav" >
                                <ul class="nav bs-docs-sidenav" >
                                    <li class="active" style="width: 230px">
                                        <a href="#stat1">1. Methylation & Distribution</a>
                                        <ul class="nav nav-stacked">
                                            <li>
                                                <a href="#stat1-1">1.1 Region</a>
                                            </li>
                                            <li>
                                                <a href="#stat1-2">1.2 Metagene</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li class="active" style="width: 230px">
                                        <a href="#stat2">2. Methylation & QTL</a>
                                        <ul class="nav nav-stacked">
                                            <li>
                                                <a href="#stat2-1">2.1 Enrichment</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li class="active" style="width: 230px">
                                        <a href="#stat3">3. Mobility & Methylation</a>
                                        <ul class="nav nav-stacked">
                                            <li>
                                                <a href="#stat3-1">3.1 Mobility & Methylation population</a>
                                            </li>
                                            <li>
                                                <a href="#stat3-2">3.2 Mobility & Methylation location</a>
                                            </li>
                                            <li>
                                                <a href="#stat3-3">3.3 Mobility & Methylation frequency</a>
                                            </li>
                                            <li>
                                                <a href="#stat3-4">3.4 Mobility & Methylation  intensity</a>
                                            </li>
                                        </ul>
                                    </li>
                                </ul>
                            </div>
                        </div>

                        <div class="col-md-9" style="padding-bottom: 100px">
                            <h3 id="stat1"><strong>1. Methylation & Distribution</strong></h3>
                            <h5 id="stat1-1"><strong>1.1 Region</strong></h5>
                            <img src="/assets/images/stat2/stat1.1.jpg" width="100%"/>
                            <hr />
                            <h5 id="stat1-2"><strong>1.2 Metagene</strong></h5>
                            <img src="/assets/images/stat2/stat1.2.jpg" width="100%"/>
                            <hr />

                            <h3 id="stat2"><strong>2. Methylation & QTL</strong></h3>
                            <h5 id="stat2-1"><strong>2.1 Enrichment</strong></h5>
                            <div style="text-align: center">
                                <img src="/assets/images/stat2/stat2.1.jpg" width="70%"/>
                            </div>

                            <table class="table table-hover" id="table" data-pagination="true" data-advanced-sortable="true"
                            data-page-list="[10]">
                                <thead>
                                    <tr>
                                        <th data-field="0" data-sortable="true" data-search-type="text" data-rowspan="2">
                                            CsQTL ID</th>
                                        <th data-colspan="2" >Number of methylated mRNAs per 30,000 bp on QTL</th>
                                        <th data-colspan="2">Hypergeometric distribution on CsQTL</th>
                                    </tr>
                                    <tr>
                                        <th data-field="1" data-sortable="true" data-search-type="text">m<sup>5</sup>C</th>
                                        <th data-field="2" data-sortable="true" data-search-type="text">m<sup>6</sup>A</th>
                                        <th data-field="3" data-sortable="true" data-search-type="text">m<sup>5</sup>
                                            C mRNA</th>
                                        <th data-field="4" data-sortable="true" data-search-type="text">m<sup>6</sup>
                                            A mRNA</th>
                                    </tr>
                                </thead>
                            </table>
                            <hr />

                            <h3 id="stat3"><strong>3. Mobility & Methylation</strong></h3>
                            <h5 id="stat3-1"><strong>3.1 Mobility & Methylation population</strong></h5>
                            <img src="/assets/images/stat2/stat3.1.jpg" width="100%"/>
                            <hr />
                            <h5 id="stat3-2"><strong>3.2 Mobility & Methylation location</strong></h5>
                            <img src="/assets/images/stat2/stat3.2.jpg" width="100%"/>
                            <hr />
                            <h5 id="stat3-3"><strong>3.3 Mobility & Methylation frequency</strong></h5>
                            <img src="/assets/images/stat2/stat3.3.jpg" width="100%"/>
                            <hr />
                            <h5 id="stat3-4"><strong>3.4 Mobility & Methylation  intensity</strong></h5>
                            <img src="/assets/images/stat2/stat3.4.jpg" width="100%"/>

                        </div>
                    </div>

                </div>


            </div>
        </div>
    </div>

    <script src="@routes.Assets.versioned("config/bootstrap.min.js")" type ="text/javascript"></script>

    <script>
            $(function () {

                $('body').scrollspy({target: '#myScrollspy'})

                $("#myNav").affix({
                    offset: {
                        top: 100
                    }
                });

                $.post("@routes.HomeController.getHypgeomdist()", (data) => {
                    $("#table").bootstrapTable({data: data})
                })

            })



    </script>
}